package com.lagou.edu.wwyan.mongo.bean;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document("lg_resume_datas")
@NoArgsConstructor
public class Resume {
    @Id
    private String id;
    private String name;
    private Double salary;

    public Resume(String name, Double salary) {
        this.name = name;
        this.salary = salary;
    }
}
